package com.ruoyi.myplayer.service.impl;

import java.util.List;

import com.ruoyi.myplayer.domain.PlayerYuedan;
import com.ruoyi.myplayer.mapper.PlayerYuedanMapper;
import org.springframework.stereotype.Service;
import com.ruoyi.system.service.IPlayerYuedanService;

import javax.annotation.Resource;

/**
 * 乐单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-24
 */
@Service
public class PlayerYuedanServiceImpl implements IPlayerYuedanService 
{
    @Resource
    private PlayerYuedanMapper playerYuedanMapper;

    /**
     * 查询乐单
     * 
     * @param id 乐单主键
     * @return 乐单
     */
    @Override
    public PlayerYuedan selectPlayerYuedanById(Long id)
    {
        return playerYuedanMapper.selectPlayerYuedanById(id);
    }

    /**
     * 查询乐单列表
     * 
     * @param playerYuedan 乐单
     * @return 乐单
     */
    @Override
    public List<PlayerYuedan> selectPlayerYuedanList(PlayerYuedan playerYuedan)
    {
        return playerYuedanMapper.selectPlayerYuedanList(playerYuedan);
    }

    /**
     * 新增乐单
     * 
     * @param playerYuedan 乐单
     * @return 结果
     */
    @Override
    public int insertPlayerYuedan(PlayerYuedan playerYuedan)
    {
        return playerYuedanMapper.insertPlayerYuedan(playerYuedan);
    }

    /**
     * 修改乐单
     * 
     * @param playerYuedan 乐单
     * @return 结果
     */
    @Override
    public int updatePlayerYuedan(PlayerYuedan playerYuedan)
    {
        return playerYuedanMapper.updatePlayerYuedan(playerYuedan);
    }

    /**
     * 批量删除乐单
     * 
     * @param ids 需要删除的乐单主键
     * @return 结果
     */
    @Override
    public int deletePlayerYuedanByIds(Long[] ids)
    {
        return playerYuedanMapper.deletePlayerYuedanByIds(ids);
    }

    /**
     * 删除乐单信息
     * 
     * @param id 乐单主键
     * @return 结果
     */
    @Override
    public int deletePlayerYuedanById(Long id)
    {
        return playerYuedanMapper.deletePlayerYuedanById(id);
    }
}
